home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
TURB_VIS
/
ALEXLEVI
/
DEMO
/
DEMOUSE.ASM
< prev
next >
Wrap
Assembly Source File
|
1994-04-12
|
2KB
|
87 lines
;
;****************************************************************************
;* *
;* This procedure was made by Alex Levitas' "Mouse Cursor Editor". *
;* *
;****************************************************************************
;
; This procedure changes mouse cursor icon in graphic mode.
;
; Procedure has no parameters and no return value. Value of AX, BX,
; CX and DX will be changed.
;
; W A R N I N G ! ! !
; This procedure DOES NOT check mouse existence, DOES NOT initialize mouse,
; but ONLY change icon of active initialized mouse in graphic mode ! !
;
; To use this procedure in your program, insert the directive
;
; INCLUDE DEMOUSE.ASM
;
; If you want to use more than one changed icon in your program, you
; must change procedure name in each source file.
;
ChangeMouseCursor PROC NEAR
PUSH ES
PUSH CS
POP ES
MOV DX, offset $ + 14h
MOV BX, word ptr CS:[$ + 51h]
MOV CX, word ptr CS:[$ + 4Eh]
MOV AX, 9
INT 33h
POP ES
RET
; Screen Mask
DW 57375d
DW 57375d
DW 57375d
DW 49167d
DW 32775d
DW 3d
DW 3d
DW 1d
DW 3d
DW 3d
DW 32775d
DW 49167d
DW 57375d
DW 57375d
DW 57375d
DW 65535d
; Cursor Mask
DW 0d
DW 4032d
DW 4032d
DW 4128d
DW 8464d
DW 16648d
DW 16648d
DW 16652d
DW 16904d
DW 17416d
DW 8208d
DW 4128d
DW 4032d
DW 4032d
DW 0d
DW 0d
; Hot dot X
DW 7d
; Hot dot Y
DW 7d
ENDP